const { getOwnPropertySymbols } = require("core-js/fn/object");

function People() {}
People.prototype.say = function() {};

class People {
  constructor(name) {
    this.name = name;
  }

  say() {
    console.log(this.name);
  }
}